how to calculate the percent on a test